let adoptList = [];
function adopt(state=adoptList,action){
    switch(action.type){
        case 'GETADOPTLIST':
            return [...action.data];
        case 'ADD_ADOPTLIST':
            return [...state,action.value];
        default:
            return state;
        
    }
};

export default adopt;